

public class Module {
    private String name;
    private int num;
    {
        System.out.println("构造代码块");
    }
    public Module(){
        System.out.println("无参构造方法");
    }
    public Module(String name,int num){
        this.name=name;
        this.num=num;
        System.out.println("有参构造方法");
    }
}
